import request from '@/api/request/index'

/** 查询oem申请 */
export function developDashBoardQueryApproveOemApply(): Promise<any> {
  return request.get('/api/develop/dashBoard/queryApproveOemApply')
}

/** 查询供应商基本信息 */
export function developDashBoardQuerySupplierSimpleInfo(): Promise<any> {
  return request.get('/api/develop/dashBoard/querySupplierSimpleInfo')
}

/** 查询待办事项 */
export function developDashBoardQueryTodoStatistics(): Promise<any> {
  return request.get('/api/develop/dashBoard/queryTodoStatistics')
}

/** 驳回申请 */
export function developDashBoardRejectApplyProductId(data: { productId?: string }): Promise<any> {
  return request.post('/api/develop/dashBoard/rejectApply/${productId}')
}

/** 根据条件查询SKU信息 */
export function developPermissionQueryCenterSkuInfoBySkuCodeSkuCode(data: { skuCode?: string }): Promise<any> {
  return request.get('/api/develop/permission/queryCenterSkuInfoBySkuCode/${skuCode}')
}

/** 查询开发下sku对应的供应商 */
export function developPermissionQuerySupByDevSku(): Promise<any> {
  return request.get('/api/develop/permission/querySupByDevSku')
}

/** 根据条件查询当前开发负责的供应商 */
export function developPermissionQuerySupplierListBySupplierName(data: {
  // 供应商名称
  supplierName?: string
}): Promise<any> {
  return request.post('/api/develop/permission/querySupplierListBySupplierName', data)
}

/** 手动触发定时任务 */
export function developPermissionStartQueryProcurementInfo(): Promise<any> {
  return request.get('/api/develop/permission/startQueryProcurementInfo')
}
